<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查询学生</title>

    <style>
        a{text-decoration: none}
    </style>


</head>
<body>
    <h4><a href="../../student/Index/index" style="text-decoration: none">返回管理员界面</a></h4>

    <form method="post" action="selectStudent">
        科目查询:<input type="text" name="c_name" value='{$c_name}'>
        <button type="submit">查询</button>
    </form>

    <a href="insertStudent">添加学生</a>
    <table border="1" cellspacing="0">
        <tr>
            <th>学生名字</th>
            <th>学生密码</th>
            <th>学生性别</th>
            <th>学生年龄</th>
            <th>学生班级</th>
            <th>老师-科目</th>
            <th>时间</th>
            <th>操作</th>
        </tr>

        {foreach($selectStudent as $key=>$value)}
        <tr>
            <td>{$value.name}</td>
            <td>{$value.password}</td>
            <td>{$value.sex}</td>
            <td>{$value.age}</td>
            <td>{$value.cls_name}</td>
            <td>{$value.t_c_name}</td>
            <td>{$value.create_time}</td>
            <td> <a href="deleteStudent?id={$value.id}">删除</a> <a href="updateStudent?id={$value.id}">修改</a> </td>
        </tr>

        {/foreach}

    </table>




</body>
</html>